import threading

from django.apps import AppConfig


class DemoappConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'demoapp'

    def ready(self):
        super().ready()
        from .openai_redis import Daemon
        threading.Thread(target=Daemon().run,daemon=False).start()



